package com.qys.livesMall.shop.modal.vo.task.sys;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.qys.livesMall.shop.modal.vo.SellLivesChild;
import com.qys.livesMall.shop.modal.vo.task.SellTaskVo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
public class SysShopSellTaskPageVo extends SellTaskVo {

    @Schema(description = "店铺名")
    private String shopName;

    @Schema(description = "任务时长（平台设定)")
    private String taskDuration;

    @Schema(description = "审批状态（0：审核中 1. 审核未通过  2:审核通过")
    private Byte passFlag;

    @Schema(description = "任务开始时间（当前时间之后）")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+0")
    private LocalDateTime taskStartTime;

    @Schema(description = "任务结束时间（开始时间之后）")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+0")
    private LocalDateTime taskEndTime;

    @Schema(description = "所需信誉值(不小于0)")
    private Integer needReputation;

    @Schema(description = "用户名")
    private String userName;

    @Schema(description = "用户UID")
    private String userRandomId;

    @Schema(description = "带货商品列表")
    private List<SellLivesChild> goodsChildList;

}
